package main

import (
	"go/parser"
	"go/token"
	"flag"
	"fmt"
)
	
func main(){
	flag.Parse()
	
	args := flag.Args()
	
	for _, name := range args {
		a, err := parser.ParseFile(token.NewFileSet(), name, nil, 0)
		if err != nil {
			fmt.Printf("%v\n", err)
			continue
		}
		for _, imps := range a.Imports {
			fmt.Printf("%v\n", imps.Path.Value)
		}
	}
}
